#include <iostream>
#include "tui.utils.h"

// Read to end
void readStreamToEnd(std::stringstream &stream, std::string &output) {
  std::string temp;
  while(true) {
    temp = "";
    stream >> temp;
    if(temp.size() == 0) break;
    if(output.size() != 0) output += " ";
    output += temp;
  }
}
